package com.kuang.demo.mapper.wx;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuang.demo.bo.zzywx.detail.GoodsType;
import com.kuang.demo.bo.zzywx.detail.Issue;
import com.kuang.demo.bo.zzywx.goods.*;
import com.kuang.demo.pojo.wx.Cskaoyanmall_goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WXGoodsMapper extends BaseMapper<Cskaoyanmall_goods> {
    List<CategoryGoods> selectCategory(int id);

    CategoryGoods selectCategoryParent(int id);

    String judgeLevel(int id);

    int selectLevelById(int id);

    CategoryGoods selectByCategory(int id);

    List<GoodsList0> selectGoodsByPid(ListReceive listReceive);

    int selectNumByPid(ListReceive listReceive);

    int countNum();

    List<String> selectGoodsType(int id);

    List<GoodsType> selectGoodsTypeBySpec(@Param("id") int id, @Param("s") String s);

    List<Issue> selectIssue(int id);

    Integer selectCollectNum(int id);

    String selectImage(int id);

    List<Commit1> selectComment(int id);

    List<Attribute> selectAttribute(int id);

    int selectBrandId(int id);

    Brand1 selectBrandById(int brandId);

    List<Product1> selectGoodsProduct(int id);

    GoodsFinal selectGoodsAll(int id);

    int selectCategoryId(int id);

    List<ReRelated> selectGoodsByCategoryId(int categoryId);

    List<WxGoodsInfo> selectGoods(Integer offset, Integer size, Integer id);

    List<WxGoodsInfo> selectGoodsByKeyword(Integer offset, Integer size, String keyword, String sort, String order);

    List<WxGoodsInfo> selectHotAndNewGoods(WxCategoryBO categoryBO);
}
